package com.zjitc.service.impl;

import com.zjitc.dao.AdminDao;
import com.zjitc.model.AdminUser;
import com.zjitc.model.User;
import com.zjitc.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/17 16:49
 * @description:
 */
@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminDao adminDao;

    public AdminUser login(String username, String password)
    {
        return adminDao.findAdminByUsernameAndPassword(username,password);
    }
}
